home *** CD-ROM | disk | FTP | other *** search
- function Speak(Osoba, SText, Orient, EngText, Driver)
- {
- if(Orient == "R")
- {
- X = getProperty(Osoba, _X) + Osoba.hx * Osoba._xscale / 100;
- }
- else
- {
- X = getProperty(Osoba, _X) - Osoba.hx * Osoba._xscale / 100;
- }
- Y = getProperty(Osoba, _Y) + Osoba.hy * Osoba._yscale / 100;
- if(!_root.menu.eng)
- {
- _root.s.bubble.Text = SText;
- }
- else
- {
- _root.s.bubble.Text = EngText;
- }
- _root.s.bubble.Count = 12 + length(SText);
- _root.s.bubble.i = 1;
- _root.s.bubble.Osoba = Osoba;
- _root.s.bubble.Driver = Driver;
- _root.s.bubble.Orient = Orient;
- if(Orient == "R")
- {
- _root.s.bubble.gotoAndPlay(4);
- setProperty("_root.s.bubble", _X, X + Osoba._width / 3);
- }
- if(Orient == "L")
- {
- _root.s.bubble.gotoAndPlay(2);
- setProperty("_root.s.bubble", _X, X - Osoba._width / 3);
- }
- setProperty("_root.s.bubble", _Y, Y - 50 * Osoba._xscale / 100);
- tellTarget(Osoba)
- {
- gotoAndStop("SpeakR");
- play();
- }
- }
- Boy.gotoAndStop(1);
- Susan.gotoAndStop(1);
- if(_root.menu.music)
- {
- fscommand("exec","player.exe\t./music/sonata.mid");
- }
-